<template>
	<div style="width: 100%;height: 100%;">
		<round-stores :storeList = "storeList"></round-stores>
	</div>
</template>

<script>
	import RoundStores from "../../real-components/RoundStore";
	import axios from 'axios';
	export default {
		props:{
			
		},
		data(){
			return {
				stores:[],
			}
		},
		computed:{
			storeList(){
				return this.stores;
			}
		},
		components:{
			"RoundStores": RoundStores
		},
		methods:{
			getStores(){
//				var url = window.api.base_host + "/baseStore/getStoreList"
				var url = window.api.base_host + "/baseStore/getRestStore"
				var params = {
					enterprisecode:window.api.enterprisecode
				}
				var config = {
					url:url,
					methods:"GET",
					params,
//					headers:{sessionId:localStorage.getItem('sessionId')}
				}
				axios(config).then((res)=>{
//					console.log(res.data.data);
//					console.log(res.data.returnCode)
					if(res.data.returnCode == 1){
						this.stores = res.data.data[0];
					}
				})
			}
		},
		created() {
			this.getStores();
        },
        mounted() {
            
        },
        updated() {
            
        },
        watch: {
           
        }
	}
</script>

<style scoped="scoped">
	
</style>